package common.core
{
	public class Txt
	{
		public static var m_textLst : Object ;
		
		public static function setData(value : Object) : void
		{
			m_textLst = value;
		}
		
		public static function getTxt(id : String) : String
		{
			if(m_textLst[id])
			{
				return m_textLst[id]["text"];
			}
			
			return id;
		}
		
		public static function checkId(str : String) : String
		{
			for each(var info : Object in m_textLst)
			{
				if(info[str])
				{
					return info["id"];
				}
			}
			
			return str;
		}
	}
}